#ifndef URLQUERY_H
#define URLQUERY_H

#include <QObject>
#include <QQmlEngine>
#include <QUrlQuery>
class UrlQuery : public QObject
{
    Q_OBJECT
public:
    UrlQuery(QObject* parent = Q_NULLPTR);
public slots:
    void addQueryItem(const QString &key, const QString &value);
    QString toEncodedString();
    void clear();
private:
    QUrlQuery m_q;
};

extern QObject *UrlQuery_singletontype_provider(QQmlEngine *engine, QJSEngine *scriptEngine);
#endif // URLQUERY_H
